import { request } from '@/utils/request';
import Api from '@/core/permission/modules/laws/regulations';

/**
 * @description 获取法律法规列表
 */
export function getLawPageList(data: API.LawPageList) {
  return request({
    url: Api.page,
    method: 'post',
    data,
  });
}

export function getLawDetail(id: number) {
  return request<API.LawsListPageResultItem>({
    url: Api.info + `/${id}`,
    method: 'get',
  });
}
